<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<form action="http://baidu.com">
				<div>
					用户名: <input type="text" v-model="username" />
				</div>
				<div>
					性别:
					<input type="radio" value="男" name="sex" />男
					<input type="radio" value="女" name="sex" />女
				</div>
				<div>
					爱好;
					<input type="checkbox" name="hobby" value="打游戏" v-model="hobby" />打游戏
					<input type="checkbox" name="hobby" value="睡觉觉" v-model="hobby" />睡觉觉
					<input type="checkbox" name="hobby" value="吃饭饭" v-model="hobby" />吃饭饭
				</div>
				<div>
					<input type="submit" value="提交" @click.prevent="formBtn" />
				</div>

			</form>

		</div>
		<script src="../js/vue.js"></script>
		<script>
			var app = new Vue({
				el: "#app",
				data: {
					username: 'aaa',
					sex: '男',
					hobby: ['打游戏']
				},
				methods: {
					formBtn() {
						alert("点击提交")
					}
				}
			})
		</script>
	</body>
</html>
